home *** CD-ROM | disk | FTP | other *** search
/ Atari Mega Archive 1 / Atari Mega Archive - Volume 1.iso / lists / mint / l_0399 / 235 < prev    next >
Internet Message Format  |  1994-08-27  |  2KB

  1. Date: Tue, 27 Apr 93 13:32:25 PDT
  2. From: brad@tazboy.Jpl.Nasa.Gov (Brad Pickering)
  3. Message-Id: <9304272032.AA00382@tazboy.Jpl.Nasa.Gov>
  4. To: mint@atari.archive.umich.edu
  5. Subject: changes to support MacMiNT
  6.  
  7. Hi MiNT people -
  8.   I have ported MiNT 0.95 to the Macintosh, and I'm starting to port version
  9. 1.04.  For my 0.95 port I basically hacked around until it worked.  For
  10. the 1.04 port I would like to be a little more systematic.  It turns out that
  11. the major changes to MiNT have to do with low memory addresses.  MiNT wants
  12. to find certain system globals in low memory but the Mac stores its own
  13. stuff there, so the the Mac version of MiNT needs to look somewhere else for
  14. these values.  What I would like to suggest, so that my port will be cleaner,
  15. is that access to low memory globals not be hard coded.  I have started
  16. two files: one to be included in assembler files and one to be included by
  17. C files.  The following is what I have in 'locore.i', the assembler include:
  18.  
  19. %ifndef MAC
  20. %define LC_TERM ($408).w
  21. %define LC_FRAME ($59e).w
  22. %define LC_FLOPLCK ($43e).w
  23.  
  24. %define GEMDOS 1
  25. %define AES 2
  26. %define BIOS 13
  27. %define XBIOS 14
  28. %else
  29.     XDEF    _mac_term
  30.     XDEF    _mac_frame
  31.     XDEF    _mac_floplck
  32.  
  33. %define LC_TERM _mac_term
  34. %define LC_FRAME _mac_frame
  35. %define LC_FLOPLCK _mac_floplck
  36.  
  37. %define GEMDOS 1
  38. %define AES 15
  39. %define BIOS 2
  40. %define XBIOS 3
  41. %endif
  42.  
  43. The other header would do the same sort of thing for C files. This would make
  44. it easier to port and not much more complicated.
  45.  
  46. What do you think?
  47.  
  48. Brad
  49.